package net.lab1024.sa.admin.module.flowable.demo;

import lombok.extern.slf4j.Slf4j;
import net.lab1024.sa.admin.module.flowable.enums.FlowComment;
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;

@Slf4j
public class UserTask4 extends BasicTaskListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        log.info("正确执行第四个节点任务");
        this.complete(delegateTask.getProcessInstanceId(), delegateTask.getId(), null, FlowComment.NORMAL.getType(), "成功");
    }
}
